<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./表单.js"></script>
</head>

<body>
    <form id="text-from" accept="#" target="_blank" onsubmit="return  sumfrom()">
        <table>
            <tr>
                <td> 用户名:</td>
                <td><input type="text" id="username" name="username"> </td>
            </tr>
            <tr>
                <td> 密码:</td>
                <td><input type="password" id="password" name="password"> </td>
            </tr>
            <tr>
                <td> 重复密码: </td>
                <td> <input type="password" id="password-2"></td>
            </tr>
            <tr>
                <td>电子邮件:</td>
                <td> <input type="email" id="email"></td>
            </tr>
            <tr>
                <td><button type="submit">点击提交</button></td>
                <td><button type="reset">重置</button></td>
            </tr>
        </table>
    </form>
</body>

</html>